"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RoomPlayer = void 0;
class RoomPlayer {
    constructor() {
        this.score = 0;
        this.chair = 0;
        this.ready = false;
        this.joinTime = 0;
        this.sex = 0;
        this.location = "";
        this.matchTurn = 0;
        this.max_score = 0;
        this.chargeEndTime = 0; //充值限时
        this.isMachine = false;
        this.isOnline = true;
        this.zimo = 0; //自摸次数
        this.jiepao = 0; ////接炮次数
        this.dianpao = 0; //点炮次数
        this.gangTimes = 0; //摸豆次数
        this.jiTimes = 0; //摸鸡次数
    }
    static createPlayerByUser(user, room) {
        let player = {
            userid: user.userid,
            nickName: user.nick_name,
            headimgurl: user.headimg,
            sex: user.sex,
            score: 0,
            isReady: false,
            isOnline: false,
        };
        return player;
    }
    clone() {
        // let player: RoomPlayer = new RoomPlayer()
        // player.userid = this.userid
        // player.nick_name = this.nick_name
        // player.headimg = this.headimg
        // player.invite = this.invite
        // player.score = this.score
        // player.chair = this.chair
        // player.ready = this.ready
        // player.joinTime = this.joinTime
        // player.sex = this.sex;
        // player.location = this.location
        // player.matchTurn = this.matchTurn
        // player.max_score = this.max_score
        // player.chargeEndTime = this.chargeEndTime
        // player.isMachine = this.isMachine
        // player.isOnline = this.isOnline
        // player.zimo = this.zimo
        // player.jiepao = this.jiepao
        // player.dianpao = this.dianpao
        // player.gangTimes = this.gangTimes
        // player.jiTimes = this.jiTimes
        // return player
    }
}
exports.RoomPlayer = RoomPlayer;
